package com.easysoft.framework.manager.mapper;

import com.easysoft.framework.beans.Page;
import com.easysoft.framework.manager.model.SysManager;
import com.easysoft.framework.manager.model.SysManagerQuery;
import com.easysoft.framework.manager.model.SysManagerView;
import com.easysoft.framework.stereotype.MyBatisRepository;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@MyBatisRepository("mapper.SysManagerMapperExtd")
public interface SysManagerMapperExtd extends SysManagerMapper {
    SysManagerView selectManagerByUserName(String username);

    int countManagerByUserNameOrMobile(@Param("username") String username, @Param("mobile") String mobile);

    List<SysManagerView> selectManagerByUserNameOrMobile(@Param("username") String username, @Param("mobile") String mobile);

    List<SysManagerView> selectSysManagerListByPage(@Param("page") Page page, @Param("query") SysManagerQuery query);

    int selectCountAllSysManager(@Param("query") SysManagerQuery query);

    SysManagerView selectSysManagerViewByPrimaryKey(String id);
}
